third-party-prc-api icon

third-party-prc-api

(0 reviews)

Submit Customer Data IBAN to SSC

URLS:

Description : This API will get accountNo from exp layer which will be sent to T24 to fetch the details. If no data is retrieved from T24 send the error message returned by t24 to exp layer. If data is retrieved from T24 then send it to SSC to submit the IBAN.

Channels can consume Mulesoft’s REST API exposed as an experience API.

Mulesoft Request:

Mandatory Headers: client_id, x-channel-id, x-correlation-id, x-bank-id, client_secret

Optional Headers: x-user-id, x-sub-channel-id, x-debug-flag, x-customer-id ,Authorization

URI Parameter: NA
Query Params: NA

Body:

{
         "accountNo":  "4187188"
}

Content-type: application/json

Input to SSC:

FieldNameDataTypeRequired?Description
BankIDIntegerYesUnique identifier for the Bank
PasswordStringYesHashed password using Sha2-256 – salt to be provided later
IsJordanianIntegerYes1: Jordanian 2: Non-Jordanian 3: Corporate
NationalIDStringRequired if IsJordanian=1 or 39 or 10-digit number
PersonalNumberStringRequired if IsJordanian=2 only will be disregarded otherwisethe Personal Number for the individual, or you can send the document number (can be nonnumeric) if personal number is not available
NameStringOne name field is requiredFull name per formal records in Arabic (UTF8 encoding)
NameEnglishStringOne name field is requiredFull name per formal records in English
IBANStringYesAlphanumeric
DOBDateRequired if IsJordanian=2 only will be disregarded otherwiseDD/MM/YYYY

Mulesoft Response:

Success Response: (200)

Response Body: application/json

Sample Response

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
        }
}

Sample Error Response:

Error codes :

400:

content-type: JSON

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "",
        "englishMessage": "No records were found that matched the selection criteria",
        "errorCode": "",
        "backendErrorMessage": ""
    }
}
Below fields should be given back to Channel if x-debug flag = 1

                "errorCode": "",
                "backendErrorMessage": "",

Reviews